package pe.edu.upc.dsd.jaxws;

public class CalculadoraServiceImpl implements CalculadoraService {
		
	@Override
	public int sumar(int a, int b) {
		return a + b;
	}

	@Override
	public int restar(int a, int b) {
		return a - b;
	}

	@Override
	public int multiplicar(int a, int b) {
		return a * b;
	}

	@Override
	public int dividir(int a, int b) {
		if (b!=0){
			return a/b;
			
		}else {
			return 0;			
		}
	}
	
}
